<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>凤凰基金</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>skin/css/pf/link.css"/>
<%-- <link href="<%=basePath%>skin/css/bootstrap/bootstrap.css" rel="stylesheet" type="text/css" /> --%>
<script type="text/javascript" src="<%=basePath%>skin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/pf/script.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/common.js"></script>
<%-- <script type="text/javascript" src="<%=basePath%>skin/js/bootstrap/bootstrap-paginator.js"></script> --%>
<script type="text/javascript">
$(document).ready(function(){
	//$("#navs > div.nav").children("a").eq(0).addClass("click");
	
/* 	var productTypeId = "${paramBean.productTypeId }";
	var tagId = "${paramBean.tagId }";
	var currentPage = "${ pagination.currentPage}";
	var totalPages = "${ pagination.pageCount}";
	var numberOfPages = "${ pagination.pageSize}";
    var options = {
		currentPage: currentPage,
		totalPages: totalPages,
		numberOfPages: numberOfPages,
		pageUrl:function(type, page, current){
			return basePath+"shop/product/list.shtml?productTypeId="+productTypeId+"&tagId="+tagId+"&p="+page;
		}
	}
	
    try {
    	$("#paginator").bootstrapPaginator(options);
    } catch (e) {} */
});
</script>
</head>

<body>
<c:import url="/layouts/top.jsp" />
<!--二级页面大图-->
<div id="publics">
	<div class="bg" style="background:url(<%=basePath%>skin/images/pf/novice_bg.jpg) center no-repeat;">
		<p class="bgs" style="background:url(<%=basePath%>skin/images/pf/novice_bg1.jpg) center no-repeat;"></p>
	</div>
	<div class="fairs">
		<div class="conet">
			<p class="left">${productType.type}</p>
			<div class="right">
				<c:forEach items="${tags }" var="tag">
					<a href="<%=basePath%>shop/product/list.shtml?productTypeId=${paramBean.productTypeId}&tagId=${tag.id}" <c:if test="${paramBean.tagId == tag.id }">class="click"</c:if>>${tag.name }</a>
				</c:forEach>
			</div>
			<div id="clear"></div><!--清除浮动-->
		</div>
		
	</div>
</div>
<!--二级页内容区-->
<div id="second">
	<div class="fair">
		<ul class="all">
			<c:forEach items="${products }" var="product">
				<li>
					<c:if test="${not empty product.source}">
						<img src="<%=basePath%>download.shtml?filepath=${product.source}" title="${product.name}"/>		  			
		  			</c:if>
					<div class="conet">
						<a href="<%=basePath%>shop/product/detail.shtml?productId=${product.id}" class="title">${product.name}</a>
						<p class="txt">${product.introduction}</p>
						<p class="earnings">
		 					<span class="tite">月收益率</span>
		 					 <!--涨幅颜色用  红色  rise 绿色  fall-->
		 					<span class="exp rise">${product.ysy}</span>
		 				</p>
		 				<a href="<%=basePath%>shop/product/detail.shtml?productId=${product.id}" class="more">一键跟投</a>
					</div>
				</li>
			</c:forEach>
			<div id="clear"></div><!--清除浮动-->
		</ul>
		<!-- <p class="mores fairmores">加载更多内容</p> -->
	</div>
<!-- 	<div class="page clearfix">
        <div class="p-wrap" id="paginator">
        </div>
    </div> -->
</div>
<c:import url="/layouts/foot.jsp" />
</body>
</html>
